//
//  MainViewController.h
//  TestUtilityApplication
//
//  Created by Jeoffrey Thirot on 06/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <GameKit/GameKit.h>
#import "FlipsideViewController.h"
#import "GameViewController.h"
#import "BTSession.h"

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate, UITextFieldDelegate, UIScrollViewDelegate> {
    CGPoint  offset;
    int flagScroll;
    GKPeerPickerController *mPicker;
    BTSession *delegateSession;
    int numPlayer;
    NSString *challengerName;
}

@property (retain, nonatomic) IBOutlet UIButton *startGameButton;
@property (retain, nonatomic) IBOutlet UITextField *playerNameTF;
@property (retain, nonatomic) IBOutlet UIScrollView *scrollView;
@property (retain, nonatomic) BTSession *delegateSession;
@property (retain, nonatomic) IBOutlet UILabel *logLabel;

- (IBAction) showInfo:(id)sender;
- (IBAction) connectingAction:(id)sender;

- (void) createPicker;
- (void) connected:(NSNotification *)notification;
- (void) dataInitGame:(NSNotificationCenter *)notification;
- (void) startGameAction;

- (void) keyboardWillShow:(NSNotification *)notification;
- (void) keyboardWillHide:(NSNotification *)notification;

@end
